package com.xinghou.platform.util.exception;

/**
 * Created by qingshengzheng on 15/11/18.
 */
public enum DBExceptionEnums implements ExceptionEnums {
    USER_NO_EXISTS("10001", "账号密码错误，请重新输入"),
    USER_PASSWORD_ERROR("10002", "用户密码不正确"),

    MOILETYPE_ERROR("10003", "用户类型错误!"),
    MOILECHECK_ERROR("10004", "重复验证错误，请24小时之后再来"),

    SIGNATURES_ERROR("1003", "签名错误!"),
    USER_IS_NULL("150", "用户为空"),
    SENDTYPE_IS_NULL("170", "发送类型为空"),
    UNKNOW_SEX("111896", "不能识别的性别0,1"),
    SERVER_INTEERFACE_ERROR("130", "系统接口错误"),
    PROJECTID_IS_NULL("170", "projectid is null"),
    PHOTOID_IS_NULL("171", "photoid is null"),
    SHARE_TYPE_IS_NULL("200", "share_type is null"),
    SHARE_ID_IS_NULL("201", "share_id is null"),
    TYPE_IS_NULL("170", "type is null"),
    SHOPID_IS_NULL("180", "shopid is null"),
    COUNT_NO_IS_NULL("210", "countno is null"),
    TO_USERID_IS_NULL("151", "to userid is null"),
    CONTENT_NO_IS_NULL("211", "content no is null"),
    MSG_TYPE_IS_NULL("212", "msg type is null"),
    MSG_COUNT_TYPE_IS_NULL("152", "msg count type is null"),
    UPDATE_USER_LOCAL_ERROR("300", "update user local error"),
    CARDID_IS_NULL("150", "cardid is null"),
    ERROR_LIST_IS_NULL("500", "error list is null"),
    VERSION_IS_NULL("300","version is null"),
    UA_SYSTEM_US_NULL("290","服务器异常!"),
    DATA_IS_ERROR("290","data_is_error"),
    MOBILE_IS_NULL("220","mobile is null"),
    PASSWORD_IS_NULL("230","password is null"),
    USERID_US_NULL("150","userid is null"),
    UPDATE_ERROR("350","update error"),
    MOBILE_IS_ALREADY_EXIT("400","手机号已经注册,请重新输入"),
    PASSWORD_IS_ERROR("260","密码错误"),
    NICKNAME_IS_NULL("289","用户昵称为空"),
    USER_INFO_IS_NULL("300","user info is null"),
    UPDATE_STYLE_IS_ERROR("1","update style is error"),
    MOBILE_IS_NOT_LEGAL("140","mobile is not legal"),
    YYID_IS_NULL("161","yyid is null"),
    SEND_MESSAGE_ERROR("198","send message is error"),
    HAS_FAVORITE_CARD("250","已经关注该卡片"),
    HAS_FAVORITE_SUBJECT("251","已经关注该话题"),
    SIGN_IS_NULL("100017","签名字符串不能为空!"),
    TIMESTAMP_IS_NULL("100018","签名时间戳字段不能为空!"),
    USER_MONEY_IS_NULL("100019","用户余额为空"),
    LON_LAT_IS_NULL("100020","经纬度不能为空"),
    PASSWORD_HAS_BIND("100021", "手机号码已经绑定"),
    HAS_ATTENTION("100022", "已经关注该用户!"),
    HAS_CANCELATTENTION("100023", "已经关注该用户!"),

    SEVERN_CLOSURE("100024", "您的帐号已被封，请7天后尝试登录"),
    FOREVER_CLOSURE("100025", "您的帐号已永久被封"),
    PRARM_ERROR("100026", "参数不正确"),
    CAN_NOT_DRAW("100027","积分不足够抽奖"),


    ;

    public String code;
    public String message;

    private DBExceptionEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }


    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
